﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E95 RID: 3733
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonContractFormula : IMessage<RogueCommonContractFormula>, IMessage, IEquatable<RogueCommonContractFormula>, IDeepCloneable<RogueCommonContractFormula>, IBufferMessage
	{
		// Token: 0x17002F5B RID: 12123
		// (get) Token: 0x0600A73D RID: 42813 RVA: 0x001C3BF5 File Offset: 0x001C1DF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonContractFormula> Parser
		{
			get
			{
				return RogueCommonContractFormula._parser;
			}
		}

		// Token: 0x17002F5C RID: 12124
		// (get) Token: 0x0600A73E RID: 42814 RVA: 0x001C3BFC File Offset: 0x001C1DFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonContractFormulaReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002F5D RID: 12125
		// (get) Token: 0x0600A73F RID: 42815 RVA: 0x001C3C0E File Offset: 0x001C1E0E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonContractFormula.Descriptor;
			}
		}

		// Token: 0x0600A740 RID: 42816 RVA: 0x001C3C15 File Offset: 0x001C1E15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonContractFormula()
		{
		}

		// Token: 0x0600A741 RID: 42817 RVA: 0x001C3C1D File Offset: 0x001C1E1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonContractFormula(RogueCommonContractFormula other) : this()
		{
			this.formulaInfo_ = ((other.formulaInfo_ != null) ? other.formulaInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A742 RID: 42818 RVA: 0x001C3C52 File Offset: 0x001C1E52
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonContractFormula Clone()
		{
			return new RogueCommonContractFormula(this);
		}

		// Token: 0x17002F5E RID: 12126
		// (get) Token: 0x0600A743 RID: 42819 RVA: 0x001C3C5A File Offset: 0x001C1E5A
		// (set) Token: 0x0600A744 RID: 42820 RVA: 0x001C3C62 File Offset: 0x001C1E62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FormulaInfo FormulaInfo
		{
			get
			{
				return this.formulaInfo_;
			}
			set
			{
				this.formulaInfo_ = value;
			}
		}

		// Token: 0x0600A745 RID: 42821 RVA: 0x001C3C6B File Offset: 0x001C1E6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonContractFormula);
		}

		// Token: 0x0600A746 RID: 42822 RVA: 0x001C3C79 File Offset: 0x001C1E79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonContractFormula other)
		{
			return other != null && (other == this || (object.Equals(this.FormulaInfo, other.FormulaInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A747 RID: 42823 RVA: 0x001C3CAC File Offset: 0x001C1EAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.formulaInfo_ != null)
			{
				num ^= this.FormulaInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A748 RID: 42824 RVA: 0x001C3CE8 File Offset: 0x001C1EE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A749 RID: 42825 RVA: 0x001C3CF0 File Offset: 0x001C1EF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A74A RID: 42826 RVA: 0x001C3CF9 File Offset: 0x001C1EF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.formulaInfo_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.FormulaInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A74B RID: 42827 RVA: 0x001C3D2C File Offset: 0x001C1F2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.formulaInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.FormulaInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A74C RID: 42828 RVA: 0x001C3D6C File Offset: 0x001C1F6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonContractFormula other)
		{
			if (other == null)
			{
				return;
			}
			if (other.formulaInfo_ != null)
			{
				if (this.formulaInfo_ == null)
				{
					this.FormulaInfo = new FormulaInfo();
				}
				this.FormulaInfo.MergeFrom(other.FormulaInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A74D RID: 42829 RVA: 0x001C3DC0 File Offset: 0x001C1FC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A74E RID: 42830 RVA: 0x001C3DCC File Offset: 0x001C1FCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.formulaInfo_ == null)
					{
						this.FormulaInfo = new FormulaInfo();
					}
					input.ReadMessage(this.FormulaInfo);
				}
			}
		}

		// Token: 0x0400440D RID: 17421
		private static readonly MessageParser<RogueCommonContractFormula> _parser = new MessageParser<RogueCommonContractFormula>(() => new RogueCommonContractFormula());

		// Token: 0x0400440E RID: 17422
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400440F RID: 17423
		public const int FormulaInfoFieldNumber = 6;

		// Token: 0x04004410 RID: 17424
		private FormulaInfo formulaInfo_;
	}
}
